package edu.gdkm.pay;

public class Teacher {
    String teacherId;
    String name;
    String sex;
    double salary;
    double wage;

    public Teacher() {
    }

    public Teacher(String teacherId, String name, String sex, double salary, double wage) {
        this.teacherId = teacherId;
        this.name = name;
        this.sex = sex;
        this.salary = salary;
        this.wage = wage;
    }

    public Teacher(String teacherId, String name, String sex) {
        this.teacherId = teacherId;
        this.name = name;
        this.sex = sex;
    }

    public Teacher(String teacherId, String sex, double wage) {
        this.teacherId = teacherId;
        this.sex = sex;
        this.wage = wage;
    }

    public void print(){
        System.out.println("教工号："+teacherId+"，姓名："+name+"，性别："+sex);
    }
    public double total(){
        return salary+wage;
    }
}
